package com.qianxp.designparttern.factory;


/**
 *@author qianxp
 */
public class SimpleFactory extends AbstractFactory{

    @Override
    Person getTeacher() {
        return new Teacher();
    }

    @Override
    Person getStudent() {
        return new Student();
    }

}